""" 
行为树黑板: 黑板是行为树中, 
    所有树节点共享的全局数据存储区，用于在树节点之间传递数据
"""
import py_trees

if __name__ == "__main__":
    # 创建黑板
    blackboard = py_trees.blackboard.Blackboard()

    # 设置黑板数据
    blackboard.set("name", "Lili")
    blackboard.set("age", 18)

    # 获取黑板数据
    name = blackboard.get("name")
    age = blackboard.get("age")
    print(f"name: {name}, age: {age}")

""" 
name: Lili, age: 18
"""